package demo09;

public class MyStringTest {
    public static void main(String[] args) {

        String s1 = "Hello java";


        String s2 = "Hello java";

        if (s1.equals(s2)) {

            String sr= s1.replace(" ","");

            System.out.println(s1);

            System.out.println(sr);


             String s4 = sr.replace("java","World");
             System.out.println(s4);

                }
            }
        }

